<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>      
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>게시판 상세보기</title>
</head>
<body>
<h3>게시판 상세보기</h3>
<hr>
<br>
<table width="800" border="1">
	<tr><td width="200">순번</td><td>${board.id }</td></tr>
	<tr><td width="200">제목</td><td>${board.title }</td></tr>
	<tr><td width="200">이름</td><td>${board.name }</td></tr>
	<tr><td width="200">내용</td><td><pre>${board.content }</pre></td></tr>
	<tr><td width="200">조회수</td><td>${board.readcount }</td></tr>
	<tr><td width="200">등록일</td><td>${board.regdate }</td></tr>
	<tr><td width="200">ip</td><td>${board.ip }</td></tr>
</table>
<br>

<c:if test="${not empty board.urlFilePath1 }">
<img src=" ${board.urlFilePath1 }">
</c:if>
<br>
<c:if test="${not empty board.urlFilePath2 }">
<img src=" ${board.urlFilePath2 }">
</c:if>
<br>

<a href="list">목록보기</a>&nbsp;&nbsp;&nbsp;
<a href="updateform?id=${board.id }">수정</a>&nbsp;&nbsp;&nbsp;
<a href="deleteform?id=${board.id }">삭제</a>
<br><br>
<form method="post" action="commentWrite">
<input type="hidden" name="board_id" value="${board.id }">
name : <input type="text" name="name"><br>
내용 : <textarea name="content" cols="50" rows="3"></textarea>
<input type="submit" value="확인">
</form>
<br><hr><br>
<c:if test="${not empty board.comments }">
<c:forEach items="${board.comments}"  var="comment"  varStatus="status">
${comment.name }<br>
<pre>${comment.content }</pre><br>
${comment.regdate }<br>
<hr><br>
</c:forEach>
</c:if>


</body>
</html>